package com.tsll.entity;

import java.io.Serializable;

/**
 * 
 * @TableName verifybook
 */
public class VerifyBook implements Serializable {
    /**
     * 校验的图书id
     */
    private Integer id;

    /**
     * 图书id
     */
    private Integer bookid;

    /**
     * 检验申请编号
     */
    private Integer verifyapplicationid;

    /**
     * 图书损坏数量
     */
    private Integer damagecount;

    /**
     * 校验数量
     */
    private Integer verifycount;

    private Book book;
    private Booktype booktype;
    private Integer clearCount;
    private Integer repairCount;

    private Integer status;

    private static final long serialVersionUID = 1L;

    /**
     * 校验的图书id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 校验的图书id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 图书id
     */
    public Integer getBookid() {
        return bookid;
    }

    /**
     * 图书id
     */
    public void setBookid(Integer bookid) {
        this.bookid = bookid;
    }

    /**
     * 检验申请编号
     */
    public Integer getVerifyapplicationid() {
        return verifyapplicationid;
    }

    /**
     * 检验申请编号
     */
    public void setVerifyapplicationid(Integer verifyapplicationid) {
        this.verifyapplicationid = verifyapplicationid;
    }

    /**
     * 图书损坏数量
     */
    public Integer getDamagecount() {
        return damagecount;
    }

    /**
     * 图书损坏数量
     */
    public void setDamagecount(Integer damagecount) {
        this.damagecount = damagecount;
    }

    /**
     * 校验数量
     */
    public Integer getVerifycount() {
        return verifycount;
    }

    /**
     * 校验数量
     */
    public void setVerifycount(Integer verifycount) {
        this.verifycount = verifycount;
    }

    public Book getBook() {
        return book;
    }

    public Integer getClearCount() {
        return clearCount;
    }

    public void setClearCount(Integer clearCount) {
        this.clearCount = clearCount;
    }

    public Integer getRepairCount() {
        return repairCount;
    }

    public void setRepairCount(Integer repairCount) {
        this.repairCount = repairCount;
    }

    public void setBook(Book book) {
        this.book = book;
    }

    public Booktype getBooktype() {
        return booktype;
    }

    public void setBooktype(Booktype booktype) {
        this.booktype = booktype;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        VerifyBook other = (VerifyBook) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBookid() == null ? other.getBookid() == null : this.getBookid().equals(other.getBookid()))
            && (this.getVerifyapplicationid() == null ? other.getVerifyapplicationid() == null : this.getVerifyapplicationid().equals(other.getVerifyapplicationid()))
            && (this.getDamagecount() == null ? other.getDamagecount() == null : this.getDamagecount().equals(other.getDamagecount()))
            && (this.getVerifycount() == null ? other.getVerifycount() == null : this.getVerifycount().equals(other.getVerifycount()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBookid() == null) ? 0 : getBookid().hashCode());
        result = prime * result + ((getVerifyapplicationid() == null) ? 0 : getVerifyapplicationid().hashCode());
        result = prime * result + ((getDamagecount() == null) ? 0 : getDamagecount().hashCode());
        result = prime * result + ((getVerifycount() == null) ? 0 : getVerifycount().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", bookid=").append(bookid);
        sb.append(", verifyapplicationid=").append(verifyapplicationid);
        sb.append(", damagecount=").append(damagecount);
        sb.append(", verifycount=").append(verifycount);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}